Skip to content

fix: skip the comment in artifact mode when there are no warnings - #210

Merged
43081j merged 3 commits into
e18e:mainfrom
maksimgm:fix/skip-empty-comment
Dec 3, 2026
Merged

43081j merged 3 commits into
e18e:mainfrom
maksimgm:fix/skip-empty-comment

Conversation

@maksimgm

Copy link
Copy Markdown
Contributor

fixes #207

artifact mode now writes has_warnings to the artifact, and comment-from-artifact only updates an existing comment when there's nothing to report. artifacts without the field still comment like before. comment mode uses the same path now, so it looks up the comment once instead of twice

@github-actions

Copy link
Copy Markdown

e18e dependency analysis

No dependency warnings found.

Comment thread src/github.ts Resolved
Simplifies the change to only use the `has_warnings` flag part of the
PR.
@43081j

43081j commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

FYI @maksimgm i simplified this a bunch.

in normal mode we already skipped the comment if no warnings and no existing comment existed.

so i just kept the bit that means artifact mode also does that. meaning we can drop the createIfMissing stuff etc

@43081j
43081j merged commit ac55838 into e18e:main Dec 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Artifact mode posts a "No dependency warnings found" comment on every PR

2 participants